#!/bin/bash
sudo modprobe can
sudo modprobe can_dev
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on
sudo ip link set up can0
sudo ip link set can1 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on
sudo ip link set up can1
sudo route add default gw 192.168.0.110
sudo route add -net 0.0.0.0/0 gw 192.168.0.100
sudo ifconfig eth0 multicast
sudo route add -net 239.0.0.0 netmask 255.255.255.0 dev eth0 metric 1
cd /usr/local/bin/tx2/
./app_run_tmp.sh
exit 0
